﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sinacor.Infra.Service.Data;
using System.Data.Common;
using System.Data;

namespace Sinacor.OMM.OrderExecutor.ResourceAccess
{
    public class StockExecutor : BaseResourceAccess
    {
        public StockExecutor(Int32 companyID) 
            : base(companyID)
        {

        }

        /// <summary>
        /// ExecuteStockCreation
        /// </summary>
        public void Execute()
        {
            using (DbCommand command = this.DataBase.GetStoredProcCommand("PR_TITULO.pOr_AtlzHubTit_OMM"))
            {                
                this.DataBase.ExecuteNonQuery(command);                               
            }
        }
    }    
}
